package com.chu.mapper;

import com.chu.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoleMapper {

    //查询所有职位
    List<Role> selectAllRole();

    //查询所有
    List<Role> findAllOrgRole(Map map);

    //新增中间表
    int insertMiddle(Map map);

    //根据部门id查询职位信息
    List<Role> findAllRole(int id);

    int deleteByPrimaryKey(Integer roleid);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleid);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
}